﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using WPFExcelReport.Helpers; 
namespace WPFExcelReport
{
    public partial class TDTX02
    { 
        public TDTX02()
        {

            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VTXTIND();
            this.DataContext = MV;
            InitializeComponent();
            KRS = "VAK";
        }
        public override void QueryCommand(object sender, RoutedEventArgs e)
        {
            dwData = TBMain.NewRow();
            dwData["TXTIMANDANT"] = app.Mandant;
            SResult = TMV.QTXTIND99(dwData);
            MergeData(SResult, false);
            base.QueryCommand(sender, e);
        }
        public void ResetSeq(object sender, RoutedEventArgs e)
        {
            if (ART.Trim().Length != 3)
                return;
            dwData = TBMain.NewRow();
            dwData["TXTIMANDANT"] = app.Mandant;
            dwData["TXTITXTART"] = ART;
            TMV.VTKON.DTK00(dwData);

            TMV.DTXTIND00(dwData);
        } 
    }
}
